home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 25 / Cream of the Crop 25.iso / program / pfe0701p.zip / FAQ.TXT < prev    next >
Text File  |  1997-03-24  |  19KB  |  444 lines

  1.                          Frequently Asked Questions
  2.                                      on
  3.                           Programmer's File Editor
  4.                          --------------------------
  5.  
  6.    [Answers in this file refer to facilities available in PFE 0.07.001]
  7.  
  8.     You may find information on any problem you have encountered in the
  9.  problems.txt file, which lists known major problems in the current release
  10.  
  11. --
  12.  
  13. Q. What version of PFE is recommended for my current environments? I use
  14. Windows 3.10, Windows NT and Windows 95
  15.  
  16. A. PFE is supplied in two forms: the 16-bit edition (PFE.EXE) and the
  17. 32-bit edition (PFE32.EXE). The recommended versions for various
  18. platforms are these:
  19.  
  20.     Windows 3.1x            16-bit edition
  21.     Windows NT 3.51 and 4.0        32-bit edition
  22.     Windows 95            32-bit edition
  23.  
  24.  
  25. ----
  26.  
  27. Q. How can I arrange that edit windows are created to use the maximum area
  28. available in the MDI client area?
  29.  
  30. A. You can do this with the Options Preferences command. Start the
  31. preferences dialog and select "Window Control" from the list of option
  32. categories on the left. This shows you a panel that lets you configure
  33. exactly how child windows will be created
  34.  
  35. ----
  36.  
  37. Q. Why don't all the TrueType fonts I have installed on my system appear in the
  38. printer and screen fonts dialogs?
  39.  
  40. A. Because PFE is a programming-oriented text editor, rather than a word
  41. processor, it supports only fixed pitch fonts (ones in which all characters
  42. occupy the same width on screen or paper). There are, sadly, very few fixed
  43. pitch fonts available. There are no plans to add variable fixed pitch support
  44. in a future release.
  45.  
  46. ----
  47.  
  48. Q. I want PFE to remember the names of more than the last 5 files I've edited,
  49. so I can pick them quickly from the File menu. How can I do this?
  50.  
  51. A. You can configure the Most Recently Used (MRU) list with the Options
  52. Preferences command. Start the preferences dialog, and select "MRU List" from
  53. the list of option categories on the left. This shows you the panel that
  54. configures the MRU list.
  55.  
  56. You can configure the total size of the list, and how many files from
  57. the list will appear on the File menu (you will be able to select from the
  58. entire list with a dialog command that will follow the list on the menu).
  59. You can also specify that the File menu should be drawn in two columns rather
  60. than one if you want to show a large number of files. Note that you will need
  61. to exit PFE and restart it before your changes take effect.
  62.  
  63. ----
  64.  
  65. Q. I don't like the standard Windows File Manager, and prefer to use a third
  66. party one. How can I get the File Manager item on the Execute menu to start
  67. this instead of the standard one?
  68.  
  69. A. You can configure what the various "Manager" items on the Execute
  70. menu do with the Options Preferences command. Start the preferences
  71. dialog and select "Windows Managers" from the list of option categories
  72. on the left to show the panel that handles this
  73.  
  74. For each of the menu items, you can specify that PFE should run either
  75. the standard manager program supplied with Windows, or runs a command
  76. line of your choice
  77.  
  78. ----
  79.  
  80. Q. I use 4DOS-for-NT as my Windows NT command processor instead of Microsoft's
  81. cmd.exe - how can I get the Execute DOS Prompt and associated tool bar button
  82. to start this?
  83.  
  84. A. Normally, PFE will use the executable file named in the COMSPEC environment
  85. variable as the command processor. If this variable is not set, it uses the
  86. standard defaults "command.com" under Windows 3.1x, and "cmd.exe" under Windows
  87. NT and Windows 95
  88.  
  89. You can define the command processor you want to start with the Options
  90. Preferences command. Select the "DOS Shell" panel to configure what is started
  91. by the Execute DOS Prompt command; select the "Command Processor" panel to
  92. configure the command line used to run applications by the Execute DOS Command
  93. To Window command
  94.  
  95. ----
  96.  
  97. Q. I use Windows NT on MIPS and DEC Alpha platforms - is there an executable
  98. of PFE32 for these?
  99.  
  100. A. PFE32 exists only for Intel and PowerPC hardware. There are no plans for
  101. MIPS or DEC Alpha versions
  102.  
  103. ----
  104.  
  105. Q. How can I record my keyboard macros for use in other sessions?
  106.  
  107. A. The macro that you record as you type on the keyboard - known as the "active
  108. keyboard recording" - can be saved at any time with the Macro Save Recording
  109. command; PFE will automatically load it at the start of the next session.
  110.  
  111. You can also build libraries of macros that you can assign to keys of your
  112. choice using the Macro Librarian command.
  113.  
  114. ----
  115.  
  116. Q. How does PFE manage to allow more than 32K of text to be edited in an edit
  117. control?
  118.  
  119. A. PFE doesn't, in fact, use standard edit controls to show text. The windows
  120. you see are ordinary MDI child windows, and the text is drawn explicitly by PFE
  121. as required. Internally, a complicated memory management system keeps track of
  122. where each line of each file is stored.
  123.  
  124. ----
  125.  
  126. Q. Why, if I have word wrap switched on for a window, will PFE wrap text only
  127. when I'm typing at the end of the line and not when I insert in the middle of
  128. it?
  129.  
  130. A. The current design of PFE is set to do things that way for efficiency
  131. reasons. However, the Edit Text Reformat and Edit Text Reformat Paragraph
  132. commands allow you to reflow text to fit the current wrap margin at any time.
  133.  
  134. ----
  135.  
  136. Q. Why do I get "Help file not found" when I ask for help?
  137.  
  138. A. Make sure that you have the help file pfe.hlp in the same directory as the
  139. pfe.exe or pfe32.exe executable program
  140.  
  141. ----
  142.  
  143. Q. Why is the default of 32 undoable actions so small? Surely, when I'm typing
  144. text, I'll fill that up in 32 keypresses?
  145.  
  146. A. Actually, no - the undo system doesn't work in quite that way. It records
  147. specific _actions_ in its stack, such as a drag-drop move of text, or a cut of
  148. the highlighted text. When you're typing, each keypress is considered as part
  149. of a _single_ action, which is terminated only when you do something different,
  150. like moving the caret with the arrow keys, or switching to another window.
  151.  
  152. Then, when you use the Undo Typing command, PFE will remove all the typing
  153. you've performed in that action (a future release of PFE will probably let you
  154. undo typing actions character-by-character too)
  155.  
  156. You can change the number of undo actions that PFE records with the Options
  157. Preferences command. Start the preferences dialog and select "Editing Files"
  158. from the list of option categories on the left to show the relevant panel that
  159. lets you set the size of the list
  160.  
  161. ----
  162.  
  163. Q. If I select some text and start to drag it to a new location, how can I
  164. change my mind without having to drop the text somewhere and then undo the
  165. action?
  166.  
  167. A. You can cancel a drag-and-drop in one of two ways. If the highlighted text
  168. is visible in the window, move the mouse cursor somewhere inside it and release
  169. the left button. Alternatively, press the Escape key before you release the
  170. left mouse button.
  171.  
  172. ----
  173.  
  174. Q. How can I use drag-and-drop to move text from one window to another?
  175.  
  176. A. In the current design, PFE supports drag-and-drop only _within_ a window.
  177. Inter-window operation may be added in a future release.
  178.  
  179. ----
  180.  
  181. Q. How can I configure PFE so that the File Save command and its associated
  182. tool bar button are always available? At the moment, I can only use the command
  183. when I've changed the file in some way.
  184.  
  185. A. By default, PFE enables the File Save command only when the file showing in
  186. a window has altered. This gives you some feedback (complementing the 'file
  187. changed' marker in the status bar) that helps you avoid un-necessary saves.
  188.  
  189. You can use the Options Preferences command to change this setting.
  190. Start the preferences dialog and select "Saving Files" from the list of
  191. option categories on the left to show the relevant panel. Check the box
  192. labelled "Allow File Save on unaltered files" to make the File Save
  193. command and the toolbar button always available
  194.  
  195. ----
  196.  
  197. Q. I like the window that runs DOS commands with output capture to start full
  198. screen, and to have specific tuning details set. How can I do this?
  199.  
  200. A. DOS commands with output capture are run by either the pfedos.exe (for
  201. Windows 3) or pfedos32.exe (for Windows NT) helper modules. To change how the
  202. windows are created, set up suitable PIF files pfedos.pif and/or pfedos32.pif
  203. in the same directory, and use the Windows PIF editor to set the details as you
  204. require
  205.  
  206. ----
  207.  
  208. Q. How do I insert a Form Feed into a file, or specify it in the Find and
  209. Replace dialogs?
  210.  
  211. A. To insert a Form Feed (or any other non-typable character) use the
  212. EditTextInsertASCIICode command, which is by default mapped to Ctrl+Q. This
  213. starts up a dialog that lets you select Esc and Ctrl+A - Ctrl+Z easily by name,
  214. or specify any ASCII code you like as a number.
  215.  
  216. To specify Form Feed in the Find or Replace dialogs, write it as the two-
  217. character sequence "\f". You can also specify end-of-line by "\n" and tab by
  218. "\t"; and you can specify an arbitrary code as "\xhh", where "hh" represents
  219. two hex digits. Remember that if you actually want a "\" character, you need to
  220. write it as "\\".
  221.  
  222. ----
  223.  
  224. Q. Why do I see lots of files with type .&&& (PFE version 0.05.006) or .$$$
  225. (PFE version 0.05.007 and later) in my directories?
  226.  
  227. A. These are the backup files that PFE produces whenever you save a file. If a
  228. file of the same name exists already, PFE renames it with a type of .$$$ before
  229. writing the new data to disk.
  230.  
  231. The Options Preferences command allows you to configure some defaults
  232. for how backup is handled. Start the preferences dialog and select "Backup"
  233. from the list of option categories on the left to show the relevant
  234. panel.
  235.  
  236. In this dialog, you can disable all backup permanently; choose to have
  237. PFE make backup files to the same directory as the original file but
  238. with a file extension of your choice; or to make the copy into a file of
  239. the same name as the original, but in a subdirectory of the directory
  240. containing it
  241.  
  242. The File Save As dialog and the Options Default Modes and Options
  243. Current Modes dialogs also let you control some backup actions on a per-
  244. file basis
  245.  
  246. ----
  247.  
  248. Q. I used the Options Preferences, Options Default Modes and Options
  249. Current Modes command to set background colours for my edit windows and
  250. the main PFE workspace. Why are the colours I get not the ones I
  251. selected?
  252.  
  253. A. Depending on what type of video adapter you have fitted to your
  254. computer, only a very few of the infinite number of colours can be shown
  255. as pure or "solid" colours. Normally your system will provide 16 such
  256. solid colours, and you will see these in the block of colours shown at
  257. top left in the colour selection dialog.
  258.  
  259. When Windows is asked to display some other colour, it has to use a
  260. technique known as "dithering", that simulates the shade you want. For
  261. example, it might produce a pale blue by drawing a fine grid of dark
  262. blue lines on a white background; this will appear to be the colour you
  263. wanted when seen from a suitable distance.
  264.  
  265. Dithered colours are very unpleasant to use as backgrounds for text, and
  266. writing text on such a background is very much slower that if the
  267. background were a solid colour. For these reasons, PFE does not support
  268. the use of dithered colours, but instead translates the colour value you
  269. select to the closest available solid colour.
  270.  
  271. ----
  272.  
  273. Q. I work with a number of large projects and would like to have
  274. separate customised PFE environments. Can I do this?
  275.  
  276. A. With the 16-Bit Edition, you can use PFE's ability to locate its
  277. initialisation file pfe.ini in an arbitrary directory to do this.
  278.  
  279. With the 32-Bit Edition you can use "multiple configuration sets" in the
  280. registry to the same effect.
  281.  
  282. These facilities are controlled by the Options Preferences command; the Help
  283. button on the dialog will take you to descriptions of how they operate.
  284.  
  285. --
  286.  
  287. Q. What are the licensing arrangements for PFE? I use it at home and
  288. would like to do so at my work too.
  289.  
  290. A. PFE is FreeWare. You don't need to register to use it, and there is
  291. no fee. You can use it at home, or at work without restriction.
  292.  
  293. If you'd like to include PFE on the distribution disks with a commercial
  294. product you can obtain a licence that will enable you to do this.
  295.  
  296. The help file contains full details on the current usage and licensing
  297. position.
  298.  
  299. --
  300.  
  301. Q. I'm editing files on a NFS-mounted partition with the 16-Bit Edition,
  302. and whenever I save my edit changes the long name of the file disappears
  303. and all I see is the NFS-generated 8.3 name. What's happened?
  304.  
  305. A. The problem is in the way that PFE makes backups when you save files.
  306. In the current version, any existing file is renamed to be the backup
  307. copy, and a new file is created with the old name to save the changes
  308. into.
  309.  
  310. The step of renaming the file breaks the association that NFS maintains
  311. between the DOS 8.3 name and the file's long name. Thus, when PFE
  312. creates the new file to save - using the 8.3 name - NFS can no longer
  313. translate this to the "real" name and so has to pass the 8.3 name itself
  314. to Windows.
  315.  
  316. The only circumvention available in the current release is to disable
  317. making backup copies in these circumstances.
  318.  
  319. This problem does not arise in the 32-Bit Edition
  320.  
  321. --
  322.  
  323. Q. Why can't I open more than one file at a time with the File Open and File
  324. View commands? Previous versions of PFE allowed me to do this.
  325.  
  326. A. In this release, the various file opening dialogs all default to allowing
  327. you to select only one file at a time.
  328.  
  329. You can use the "General Options" panel of the dialog started by the Options
  330. Prefences command to enable multiple selection; however, under Windows NT 3.51
  331. some long file names will not appear correctly (see the next item)
  332.  
  333. --
  334.  
  335. Q. I'm using Windows NT 3.51, and I used Options Preferences to allow me to
  336. open more than one file at a time in the File Open command. However, my long
  337. file names don't apear any more - I just see the DOS 8.3 names 
  338.  
  339. A. There is a basic flaw in Microsoft's design of the library that provides the
  340. standard file open dialogs under Windows NT 3.51 (this code is not part of
  341. PFE). Essentially, it can't handle long file names THAT CONTAIN SPACES if you
  342. also allow multiple files to be selected. Long file names without spaces are
  343. handled correctly; but Microsoft's code automatically shows those with spaces
  344. as 8.3 names in order to get around their design error.
  345.  
  346. In its default mode of operation, PFE allows you to open only one file at a
  347. time, and here the problem does not arise.
  348.  
  349. Unfortunately, there is no way to beat this problem - if you want to open
  350. multiple files at one time, you won't see names with spaces in.
  351.  
  352. On the good side, though, the problem does not arise at all if you're running
  353. Windows 95 or Windows NT 4.0
  354.  
  355. --
  356.  
  357. Q. I'm using the 32-Bit Edition, and I've set up associations so that I can
  358. open files of type ".c" in PFE by double clicking the names in File Manager and
  359. Explorer. It works fine most of the time, but if the name contains spaces it
  360. doesn't - PFE seems to think each part of the name is a filename all by itself
  361.  
  362. A. The problem here is that the most obvious command line to use in your
  363. association:
  364.  
  365.               pfe32
  366.  
  367. is not correct. Since PFE allows multiple files to be named on the command
  368. line, you must use some extra syntactic elements in the association.
  369.  
  370. To set up your associations easily and correctly, and to enable some right-
  371. click menu functionality under Windows 95 and Windows NT 4.0, you need to set
  372. them up in the "Associations" panel of the dialog started by the Options
  373. Preferences panel.
  374.  
  375. --
  376.  
  377. Q. How do I change the font that I use to print files out? In previous releases
  378. there was a "Font" button in the Print Setup dialog, but it's gone now
  379.  
  380. A. The printer system uses the same user interface and dialogs as other
  381. applications; the Print and Print Setup dialogs you see are the standard ones
  382. that are part of Windows. 
  383.  
  384. Unfortunately, the way that Windows works with these dialogs means that it
  385. isn't possible to select fonts from them. You should use the File Page Setup
  386. command for this and to define printer page margins
  387.  
  388. --
  389.  
  390. Q. I'm using the Execute DOS Command To Window command to run my compiler,
  391. which will prompt me for input if there's an error. Using the 32-bit edition I
  392. see the compiler output in the console window, but I never see the prompts and
  393. the output window seems to lock up, although if I type the expected reply blind
  394. it all seems to work. What's going wrong?
  395.  
  396. A. The problem here arises because PFE is essentially trying to subvert the
  397. compiler, fooling it into thinking that it's writing to the screen (as it
  398. normally would) when actually it's sending all its output to PFE (actually, to
  399. a small helper program that PFE runs for this purpose).
  400.  
  401. If the compiler or other program is simply writing, then it all works fine. But
  402. as you've seen, there are problems if the program wants you to perform input.
  403. Normally, when a program writes to the screen, Windows makes sure that all the
  404. output is sent there directly and not stored in the program's or Windows's
  405. buffers. Thus, you see the prompt as soon as the program writes it, and you
  406. know what to do.
  407.  
  408. But when PFE runs the compiler, the output is actually not to the screen, but
  409. to PFE. The compiler itself doesn't know the difference, but the underlying I/O
  410. systems and Windows certainly do. Since they know the program isn't writing to
  411. the screen, the compiler's output will be buffered for efficiency - thus it's
  412. quite possible, and actually most probable, that the prompt string will be
  413. stored in a buffer waiting to be written to the screen when the compiler asks
  414. you to type - so you never see the prompt.
  415.  
  416. There is no way round this problem, unfortunately. Although techniques are
  417. available for programs to detect what's happening and make sure that you _do_
  418. see the prompt, you'll be lucky to find one that uses them.
  419.  
  420. The moral, sadly, is that the Execute DOS Command To Window command is not
  421. suitable if the program you want to run will ever require you to type in to it
  422. rather than simply generate output
  423.  
  424. --
  425.  
  426. Q. I like to work with tab width of 4 in my files, and I can set this up with
  427. the Options Current Modes command. However, if I edit the same files again, the
  428. tab setting reverts to the default of 8. How can I change this?
  429.  
  430. A. The Options Current Modes command affects the modes applied to only the
  431. current window; the effect is limited to that window, and when it closes the
  432. settings are lost.
  433.  
  434. To do what you want - which is to define the default modes for a file - you
  435. need to use the Options Default Modes command.
  436.  
  437. You'll find full information on how to use this command in the help file.
  438. Basically, you can define a number of "mode groups", which are collections of
  439. filename patterns like "*.c *.h readme.*". With each mode group you define the
  440. default modes you want; then, if any file you open has a name matching
  441. something in a mode group, the relevant default modes are applied.
  442.  
  443.  
  444.